package org.qufenqi.api.service;


import org.qufenqi.api.common.CommonResponse;
import org.qufenqi.api.entity.Category;
import org.qufenqi.api.entity.Item;
import org.qufenqi.api.entity.Product;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface CatalogService {
    public CommonResponse<Category> getCategorybyId(String id);

    public CommonResponse<Product> getProductbyId( String id);

    public CommonResponse<List<Item>> getItembyCategory( String id);

    public CommonResponse<List<Item>> getItembyProduct( String id1,String id2);

    public CommonResponse<List<Item>> query( String key);

    public CommonResponse<Item> getItembyId(String id);
}
